package com.lottery.game.core.modules.entity.game;

import com.lottery.game.common.BaseObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "game_announcement_user")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "系统通知")
public class GameAnnouncementUser extends BaseObject {

    @Id
    @Column(name = "id")
    @ApiModelProperty(value = "id")
    private Long id;

    @Column(name = "user_id")
    @ApiModelProperty(value = "用户编号")
    private String userId;

    @Column(name = "notice_id")
    @ApiModelProperty(value = "系统通知编号")
    private String noticeId;

    @Column(name = "notice_status")
    @ApiModelProperty(value = "该用户的系统通知是否已读: 0-未读; 1-已读")
    private Integer noticeStatus;

    public GameAnnouncementUser(String userId, String noticeId) {
        this.userId = userId;
        this.noticeId = noticeId;
    }

    public GameAnnouncementUser(String userId) {
        this.userId = userId;
    }
}
